package com.hq.tdxt.service.imp;

import org.eredlab.g4.arm.util.idgenerator.IDHelper;
import org.eredlab.g4.bmf.base.BaseServiceImpl;
import org.eredlab.g4.ccl.datastructure.Dto;
import org.eredlab.g4.ccl.datastructure.impl.BaseDto;

import com.hq.tdxt.service.TdxtService;

public class TdxtServiceImp extends BaseServiceImpl implements TdxtService {

	@Override
	public Dto updateLand(Dto uDto) {
		Dto d=new BaseDto();
		this.g4Dao.update("Land.updateLand",uDto);
		return d;
	}

	@Override
	public Dto deleteLand(Dto dDto) {
		Dto d=new BaseDto();
		this.g4Dao.delete("Land.deleteLand",dDto);
		return d;
	}

	@Override
	public Dto addLand(Dto aDto) {
		Dto d=new BaseDto();
		this.g4Dao.insert("Land.insertLand",aDto);
		d.put("LAND_SN",aDto.get("LAND_SN"));
		return d;
	}

	@Override
	public Dto updateLandFuJianPaht(Dto uDto) {
		Dto d=new BaseDto();
		this.g4Dao.update("Land.updatePath",uDto);
		return d;
	}
	@Override
	public Dto addShouZhi(Dto inDto) {
		Dto d=new BaseDto();
		//用系统的辅助工具类参数一个编号！
		String szid=IDHelper.getCodeID();
		inDto.put("ldetail_sn", szid);
		this.g4Dao.insert("Land.saveShouZhi",inDto);
		d.put("ldetail_sn", szid);
		return d;
	}

	@Override
	public Dto deleteShouZhi(Dto dDto) {
		Dto d=new BaseDto();
		this.g4Dao.delete("Land.deleteShouZhi",dDto);
		return d;
	}

	@Override
	public Dto updateShouZhi(Dto uDto) {
		Dto d=new BaseDto();
		this.g4Dao.update("Land.updateShouZhi",uDto);
		return d;
	}
}
